Verifying Generics and Delegates

نویسندگان

  • Kasper Svendsen
  • Lars Birkedal
  • Matthew J. Parkinson
چکیده

Recently, object-oriented languages, such as C, have been extended with language features prevalent in most functional languages: parametric polymorphism and higher-order functions. In the OO world these are called generics and delegates, respectively. These features allow for greater code reuse and reduce the possibilities for runtime errors. However, the combination of these features pushes the language beyond current object-oriented verification techniques. In this paper, we address this by extending a higher-order separation logic with new assertions for reasoning about delegates and variables. We faithfully capture the semantics of C delegates including their capture of the l-value of a variable, and that “stack” variables can live beyond their “scope”. We demonstrate that our logic is sound and illustrate its use by specifying and verifying a series of interesting and challenging examples.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

GenMed 010: a one day workshop on generic medicines.

This report outlines the content of a one-day workshop on Generic Medicines that was held at KIST Medical College, Lalitpur, Nepal on 13(th) December 2010, which was attended by 32 delegates from different institutions in Nepal, including pharmacists, pharmacologists and medical doctors. Right medicine, right patient, right dose, right frequency and duration, right information and right monitor...

متن کامل

Theorem Proving for Product Lines

Mechanized proof assistants are powerful verification tools, but proof developments can still be difficult and timeconsuming. When verifying a family of related programs, the effort can be reduced by proof reuse. In this paper, we show how to engineer proofs for product lines built from feature modules. Each module contains proof fragments which are composed together to build a complete proof o...

متن کامل

Acceptability and confidence in antiretroviral generics of physicians and HIV-infected patients in France

INTRODUCTION Switching brand name medications to generics is recommended in France in the interest of cost effectiveness but patients and physicians are sometimes not convinced that switching is appropriate. Some antiretroviral (ARV) generics (ZDV, 3TC, NVP) have been marketed in France since 2013. MATERIALS AND METHODS A multicentric cross-sectional survey was performed in September 2013 to ...

متن کامل

Generics and Defaults1

1: Linguistic and Epistemological Background 1.1: Generic Reference vs. Generic Predication 1.2: Why are there any Generic Sentences at all? 1 .3: Generics and Exceptions, Two Bad Attitudes 1 .4: Exceptions and Generics, Some Other Attitudes 1 .5: Generics and Intensionality 1 .6: Goals of an Analysis of Generic Sentences 1 .7: A Little Notation 1.8: Generics vs. Explicit Statements of Regulari...

متن کامل

Perception of Antiretroviral Generic Medicines: One-Day Survey of HIV-Infected Patients and Their Physicians in France

BACKGROUND In the interest of cost effectiveness, switching antiretroviral brand name medications to generics is recommended in France since 2013. The study objective was to evaluate the perception of generics per se and antiretroviral generics in HIV-infected patients and their hospital physicians. METHODS AND FINDINGS 556 out of 703 (79%) adult HIV+ outpatients and 116 physicians in 33 clin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010